/**常量：地图配置 */
/**
    ArcGIS 离散瓦片：http://localhost:8080/tilemap/_alllayers/{z}/{y}/{x}.png
    百度深色地图：http://api1.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&udt=20190410&scale=1&ak=8d6c8b8f3749aed6b1aff3aad6f40e37&styles=t%3Awater%7Ce%3Aall%7Cc%3A%23021019%2Ct%3Ahighway%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Ahighway%7Ce%3Ag.s%7Cc%3A%23147a92%2Ct%3Aarterial%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Aarterial%7Ce%3Ag.s%7Cc%3A%230b3d51%2Ct%3Alocal%7Ce%3Ag%7Cc%3A%23000000%2Ct%3Aland%7Ce%3Aall%7Cc%3A%2308304b%2Ct%3Arailway%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Arailway%7Ce%3Ag.s%7Cc%3A%2308304b%2Ct%3Asubway%7Ce%3Ag%7Cl%3A-70%2Ct%3Abuilding%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Aall%7Ce%3Al.t.f%7Cc%3A%23857f7f%2Ct%3Aall%7Ce%3Al.t.s%7Cc%3A%23000000%2Ct%3Abuilding%7Ce%3Ag%7Cc%3A%23022338%2Ct%3Agreen%7Ce%3Ag%7Cc%3A%23062032%2Ct%3Aboundary%7Ce%3Aall%7Cc%3A%231e1c1c%2Ct%3Amanmade%7Ce%3Ag%7Cc%3A%23022338%2Ct%3Apoi%7Ce%3Aall%7Cv%3Aoff%2Ct%3Aall%7Ce%3Al.i%7Cv%3Aoff%2Ct%3Aall%7Ce%3Al.t.f%7Cv%3Aon%7Cc%3A%232da0c6
    百度高清地图（适用手机端）：http://mapor1.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=pl&udt=20170712&scaler=2
    百度高清地图（适用PC端） http://online0.map.bdimg.com/tile/?qt=tile&styles=pl&x={x}&y={y}&z={z};
    百度mapExtent: 12949773,4825000,12969773,4825000
    天地图瓦片：https://t0.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0
    天地图注记: https://t0.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0
    天地图影像: https://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0
 **/
export const MAP_CONFIG: any = {
    // mapExtent : '12949773,4825000,12969773,4825000', // '107.381035,21.552127,109.381035,25.552127',
    mapExtent : '-180,-90,180,90', // '12949773,4825000,12969773,4825000', // '107.381035,21.552127,109.381035,25.552127', '12724605,3559653,12724605,3559653'
    spatialRef : '4326',
    maxZoom: 18,
    initExtent: '114.721438,31.923215,115.0638,32.048905', // 光山县
    // initExtent: '113.575677,24.507299,118.462119,30.060626', // 江西省
    // initExtent: '113.575677,24.492721,118.496681,30.078318', // 江西省
    // initExtent: '119.048266,44.253251999999996,123.625256,48.196769999999994', // 兴安盟
    // initExtent: '116.71009799999999,39.118804999999995,117.334138,39.78088100000001', // 武清区
    tileLayers: [{
            mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
            mapServerUrl: 'https://t0.tianditu.gov.cn/DataServer?T=vec_c&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0',
            layerName : '底图',
            tileType: 2, // 1:esri离散瓦片；2：XYZ瓦片格式
            tile: {
                mapExtent : '-180,-90,180,90',
                tileSize : 256,
                mapResolution : '1.406250026370376,\n' +
                    '0.703125013185188,\n' +
                    '0.351562506592594,\n' +
                    '0.175781253272502,\n' +
                    '0.0878906266362512,\n' +
                    '0.0439453133181256,\n' +
                    '0.0219726566590628,\n' +
                    '0.0109863283307211,\n' +
                    '0.00549316416536056,\n' +
                    '0.00274658208149055,\n' +
                    '0.00137329104122116,\n' +
                    '0.000686645520610584,\n' +
                    '0.000343322760305292,\n' +
                    '0.000171661380152646,\n' +
                    '0.000085830690076323,\n' +
                    '0.0000429153450381615,\n' +
                    '0.0000214576725190807,\n' +
                    '0.0000107288362595403,\n' +
                    '0.00000536441813095992,\n' +
                    '0.00000268220906429022,0.00000134110453238306',
                spatialRef: 4326,
                spatialType : 1,//1 平面坐标， 2 球面坐标
                origionPtX : -180 ,
                origionPtY : 90
            }
        },
        {
            mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
            mapServerUrl: 'https://t0.tianditu.gov.cn/DataServer?T=cva_c&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0',
            layerName : '底图',
            tileType: 2, // 1:esri离散瓦片；2：XYZ瓦片格式
            tile: {
                mapExtent : '-180,-90,180,90',
                tileSize : 256,
                mapResolution : '1.406250026370376,\n' +
                    '0.703125013185188,\n' +
                    '0.351562506592594,\n' +
                    '0.175781253272502,\n' +
                    '0.0878906266362512,\n' +
                    '0.0439453133181256,\n' +
                    '0.0219726566590628,\n' +
                    '0.0109863283307211,\n' +
                    '0.00549316416536056,\n' +
                    '0.00274658208149055,\n' +
                    '0.00137329104122116,\n' +
                    '0.000686645520610584,\n' +
                    '0.000343322760305292,\n' +
                    '0.000171661380152646,\n' +
                    '0.000085830690076323,\n' +
                    '0.0000429153450381615,\n' +
                    '0.0000214576725190807,\n' +
                    '0.0000107288362595403,\n' +
                    '0.00000536441813095992,\n' +
                    '0.00000268220906429022,0.00000134110453238306',
                spatialRef: 4326,
                spatialType : 1, //1 平面坐标， 2 球面坐标
                origionPtX : -180 ,
                origionPtY : 90
            }
        }
    ]
    // vectorLayers: [{
    //     mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
    //     mapServerUrl: 'http://localhost:4200/assets/map/gx/450000.json',
    //     spatialRef: 4326,
    //     layerName : '行政区域',
    //     vectorType: 'geojson', // geojson;wfs
    //     mapExtent : '107.381035,22.552127,109.381035,24.552127'
    // }, {
    //     mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
    //     mapServerUrl: 'http://localhost:4200/assets/map/gx/450100.json',
    //     spatialRef: 4326,
    //     layerName : '行政区域',
    //     vectorType: 'geojson', // geojson;wfs
    //     mapExtent : '107.381035,22.552127,109.381035,24.552127'
    // }]
};

